package com.ubb.dbms.core.checker;

import com.ubb.dbms.domain.queryData.TableRowElements;
import com.ubb.dbms.domain.xml.Database;
import com.ubb.dbms.domain.xml.Table;

public interface DomainObjectChecker {
	static final String DEFAULT_ISNULL = "true"; 
	static final int DEFAULT_INT_LENGTH = 4; 
	static final int DEFAULT_STRING_LENGTH = 10; 
	
	public boolean checkDatabase(Database database);
	
	public boolean checkUseDatabase(String databaseName);
	
	public boolean checkTable(Table table, String usesDatabase);
	
	public boolean checkRowElements(TableRowElements rowElements, Table table);
	
	public boolean checkDuplicateKey(TableRowElements rowElements, Table table, String usesDatabase);
	
	public void extendWithIndexFile(Table table);

}
